import datetime
from applications.extensions import db


class Timetable(db.Model):
    __tablename__ = 'admin_training_schedule'
    weekday = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='礼拜')
    day = db.Column(db.Date, comment='日期')
    mor_exercise = db.Column(db.String(30), comment='晨练')
    morning_1 = db.Column(db.String(30), comment='早晨第一项')
    morning_2 = db.Column(db.String(30), comment='早晨第二项')
    afternoon_1 = db.Column(db.String(30), comment='下午第一项')
    afternoon_2 = db.Column(db.String(30), comment='下午第二项')
    evening_exercise = db.Column(db.String(30), comment='晚活动')
    charger = db.Column(db.String(30), default=datetime.datetime.now, comment='组织者')
